package cn.tiga.user.mapper;

import cn.tiga.user.domain.Logininfo;
import cn.tiga.basic.mapper.BaseMapper;
import cn.tiga.user.domain.User;
import cn.tiga.user.dto.LoginDto;
import org.apache.ibatis.annotations.Mapper;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author pping
 * @since 2022-07-29
 */
@Mapper
public interface LogininfoMapper extends BaseMapper<Logininfo> {
    User findByPhone(String phone);

    Logininfo getLogininfoByDto(LoginDto dto);

    Logininfo loadByUser(Long userId);
}
